﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Pansoft.HIME.Base.Interfaces.Repositories;

namespace Pansoft.HIME.Repository.Repositories
{
    /// <summary>“权限”相关数据管理器
    /// </summary>
    public class AuthorityRepository : IAuthorityRepository
    {
        #region Implementation of IAuthorityRepository

        /// <summary>在指定的角色里是否包含指定的功能编号
        /// </summary>
        public bool ContainsAuthInRole(string roleId, int authNumber)
        {
            return authNumber % 2 != 0;
        }

        #endregion
    }
}
